package com.sdppf.domain;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

@Entity
public class TestBug {
	private long bugId;
	private TestUseCase tuc;
	private Date startTime;
	private Date endTime;
	private int buglevel;
	private Date closeDate;
	public void setBugId(long bugId) {
		this.bugId = bugId;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	public long getBugId() {
		return bugId;
	}
	public void setTuc(TestUseCase tuc) {
		this.tuc = tuc;
	}
	@ManyToOne
	public TestUseCase getTuc() {
		return tuc;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	public Date getStartTime() {
		return startTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public Date getEndTime() {
		return endTime;
	}
	public void setBuglevel(int buglevel) {
		this.buglevel = buglevel;
	}
	public int getBuglevel() {
		return buglevel;
	}
	public void setCloseDate(Date closeDate) {
		this.closeDate = closeDate;
	}
	public Date getCloseDate() {
		return closeDate;
	}
}
